<template>
  <div class="about">
    <input type="text" v-model="title" />
    <button @click="add">添加</button>
    <list />
  </div>
</template>
<script>
import list from "../components/List.vue";
export default {
  data() {
    return {
      title: "",
    };
  },
  components: {
    list,
  },
  methods: {
    add() {
      this.$store.commit("add", this.title);
    },
  },
};
</script>
